<!DOCTYPE html><html><head>
      <title>NamdSig&#x90E8;&#x7F72;&#x624B;&#x518C;</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.18/dist/katex.min.css">
      
      
      
      
      
      
      
      
      
      <style>
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}

/* highlight */
pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}
pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}

pre[data-line] .line-highlight:before, 
pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;background-color:#f0f0f0;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px + 2em)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */

      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview  ">
      <style>.center {
  text-align: center;
}
.h2 {
  font-size: 1em;
}
img.center {
  display: table;
}
@media screen {
  .printonly {
    display: none !important;
  }
}
</style>
<h1 class="mume-header printonly" id="xa0">&#xA0;</h1>

<h1 class="mume-header printonly" id="xa0-1">&#xA0;</h1>

<style type="text/css">
.red {
    color: #FF0000
}
.mid {
    text-align:center
}
</style>
<h1 class="mume-header center" id="namdsig%E9%83%A8%E7%BD%B2%E6%89%8B%E5%86%8C">NamdSig&#x90E8;&#x7F72;&#x624B;&#x518C;</h1>

<h1 class="mume-header printonly" id="xa0-2">&#xA0;</h1>

<h1 class="mume-header center" id="%E7%9B%AE%E5%BD%95">&#x76EE;&#x5F55;</h1>

<div class="code-chunk" data-id="code-chunk-id-0" data-cmd="toc"><div class="input-div"><div class="btn-group"><div class="run-btn btn"><span>&#x25B6;&#xFE0E;</span></div><div class="run-all-btn btn">all</div></div><div class="status">running...</div></div><div class="output-div"></div></div><ul>
<li><a href="#H-1">1. &#x6982;&#x8FF0;</a></li>
<li><a href="#H-2">2. &#x7CFB;&#x7EDF;&#x73AF;&#x5883;&#x8BF4;&#x660E;</a>
<ul>
<li><a href="#H-2-1">2.1 &#x786C;&#x4EF6;&#x73AF;&#x5883;</a></li>
<li><a href="#H-2-2">2.2 &#x8F6F;&#x4EF6;&#x73AF;&#x5883;</a></li>
</ul>
</li>
<li><a href="#H-3">3. &#x90E8;&#x7F72;&#x65B9;&#x6848;</a></li>
<li><a href="#H-4">4. &#x7CFB;&#x7EDF;&#x786C;&#x4EF6;&#x914D;&#x7F6E;</a>
<ul>
<li><a href="#H-4-1">4.1 &#x6027;&#x80FD;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;(&#x8D85;&#x9891;)</a></li>
<li><a href="#H-4-2">4.2 NUMA&#x8BBE;&#x7F6E;</a></li>
<li><a href="#H-4-3">4.3 &#x914D;&#x7F6E;&#x5927;&#x9875;&#x5185;&#x5B58;</a></li>
</ul>
</li>
<li><a href="#H-5">5. &#x8F6F;&#x4EF6;&#x4F9D;&#x8D56;&#x5E93;&#x914D;&#x7F6E;</a>
<ul>
<li><a href="#H-5-1">5.1 &#x8F6F;&#x4EF6;&#x4F9D;&#x8D56;&#x5E93;&#x6982;&#x8FF0;</a></li>
<li><a href="#H-5-2">5.2 yum&#x4F9D;&#x8D56;&#x5E93;&#x90E8;&#x7F72;</a></li>
<li><a href="#H-5-3">5.3 DPDK&#x4F9D;&#x8D56;&#x5E93;&#x90E8;&#x7F72;</a></li>
</ul>
</li>
<li><a href="#H-6">6. NamdSig&#x90E8;&#x7F72;</a></li>
<li><a href="#H-7">7. NamdSig&#x8FD0;&#x884C;</a></li>
<li><a href="#H-8">8. FAQ</a></li>
<li><a href="#H-9">9. &#x9644;&#x5F55;</a>
<ul>
<li><a href="#H-9-1">9.1 edas.conf&#x914D;&#x7F6E;&#x6587;&#x4EF6;</a></li>
<li><a href="#H-9-2">9.2 yum&#x914D;&#x7F6E;&#x65B9;&#x6CD5;</a></li>
</ul>
</li>
</ul>
<div class="pagebreak"> </div>
<h2 class="mume-header undefined" id="H-1">1. &#x6982;&#x8FF0;</h2>

<p>&#x300A;&#x79FB;&#x52A8;&#x4E92;&#x8054;&#x7F51;&#x6076;&#x610F;&#x7A0B;&#x5E8F;_&#x4FE1;&#x4EE4;&#x9762;&#x7248;&#x672C;&#x90E8;&#x7F72;&#x8BF4;&#x660E;_V1.0.0&#x300B;<br>
&#x672C;&#x6587;&#x6863;&#x4F5C;&#x4E3A;&#x300A;&#x79FB;&#x52A8;&#x4E92;&#x8054;&#x7F51;&#x6076;&#x610F;&#x7A0B;&#x5E8F;&#x300B;&#x5E73;&#x53F0;&#x7CFB;&#x7EDF;&#x7684;&#x4FE1;&#x4EE4;&#x9762;&#x5E73;&#x53F0;&#x5B50;&#x7CFB;&#x7EDF;&#xFF0C;&#x63CF;&#x8FF0;&#x4E86;&#x6574;&#x4E2A;&#x4FE1;&#x4EE4;&#x9762;&#x7CFB;&#x7EDF;&#x7684;&#x90E8;&#x7F72;&#x65B9;&#x6CD5;&#x548C;&#x6B65;&#x9AA4;&#xFF0C;&#x7528;&#x4E8E;&#x6307;&#x5BFC;&#x7528;&#x6237;&#x6B63;&#x786E;&#x5B89;&#x88C5;&#x90E8;&#x7F72;&#x3002;</p>
<ul>
<li>
<p>&#x4FEE;&#x8BA2;&#x8BB0;&#x5F55;</p>
<table>
<thead>
<tr>
<th>&#x7248;&#x672C;&#x7F16;&#x53F7;</th>
<th>&#x4FEE;&#x8BA2;&#x65E5;&#x671F;</th>
<th>&#x4FEE;&#x8BA2;&#x4EBA;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>v1.0.0</td>
<td>2021/10/11</td>
<td>&#x5B59;&#x8FDB;&#x6770;</td>
<td>&#x521B;&#x5EFA;&#x521D;&#x59CB;&#x90E8;&#x7F72;&#x6587;&#x6863;&#xFF0C;&#x9879;&#x76EE;&#x5B9E;&#x65BD;&#x4EBA;&#x5458;&#xFF08;&#x4E13;&#x7528;&#xFF09;</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</li>
<li>
<p>&#x5F15;&#x7528;&#x6587;&#x6863;</p>
</li>
<li>
<p>&#x672F;&#x8BED;&#x8BF4;&#x660E;</p>
</li>
<li>
<p>&#x7B26;&#x53F7;&#x8BF4;&#x660E;</p>
<ul>
<li>&#x547D;&#x4EE4;&#x884C;
<ul>
<li>[] : &#x62EC;&#x5F27;&#x5185;&#x7684;&#x9009;&#x9879;&#x8868;&#x793A;&#x53EF;&#x9009;&#x3002;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">make</span> <span class="token function">install</span> <span class="token assign-left variable">T</span><span class="token operator">=</span><span class="token variable">$RTE_TARGET</span> <span class="token punctuation">[</span>-j <span class="token number">64</span><span class="token punctuation">]</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre></li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 class="mume-header undefined" id="H-2">2. &#x7CFB;&#x7EDF;&#x73AF;&#x5883;&#x8BF4;&#x660E;</h2>

<h3 class="mume-header undefined" id="H-2-1">2.1 &#x786C;&#x4EF6;&#x73AF;&#x5883;</h3>

<ul>
<li>CentOS Linux release 7.3.1611 (Core) &#x4EE5;&#x4E0A;
<ul>
<li>System: CentOS Linux release 7.3.1611</li>
<li>Kernel: 3.10.0-514.el7.x86_64</li>
<li>&#x4F9D;&#x636E;&#x6A21;&#x578B;&#x786E;&#x5B9A;&#x5185;&#x5B58;&#x5927;&#x5C0F;</li>
</ul>
</li>
<li>X710&#x7F51;&#x5361; (10Gb&#x6A21;&#x578B;&#x4E0B;&#x5FC5;&#x5907;&#x7F51;&#x5361;)<br>
Intel Corporation Ethernet Controller X710 for 10GbE SFP+</li>
</ul>
<h3 class="mume-header undefined" id="H-2-2">2.2 &#x8F6F;&#x4EF6;&#x73AF;&#x5883;</h3>

<ul>
<li>&#x8F6F;&#x4EF6;&#x8D44;&#x6E90;<br>
&#x4E0B;&#x8F7D;&#x7F51;&#x5740;: <a href="http://10.10.90.113/public/NamdSig/data/namdsig/">http://10.10.90.113/public/NamdSig/data/namdsig/</a>
<ul>
<li>&#x5907;&#x6CE8;:
<ol>
<li>yum&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#x5305;<br>
namdsig.depend.sys.tar.gz</li>
<li>&#x7B2C;3&#x65B9;&#x5E93;&#x4F9D;&#x8D56;&#x5B89;&#x88C5;&#x5305;<br>
dpdk-19.11.6.tar.gz</li>
<li>&#x4EA7;&#x54C1;&#x5B89;&#x88C5;&#x5305;<br>
namdsig_v1.0.0_r136.tar.gz<br>
&#x5B89;&#x88C5;&#x5305;&#x76EE;&#x5F55;&#x5217;&#x8868;&#x5982;&#x4E0B;:<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">./NamdSig
&#x251C;&#x2500;&#x2500; dpdk/
&#x2502;   &#x2514;&#x2500;&#x2500; usertools/
&#x251C;&#x2500;&#x2500; lib/
&#x251C;&#x2500;&#x2500; log/
&#x251C;&#x2500;&#x2500; output/
&#x251C;&#x2500;&#x2500; storage/
&#x2514;&#x2500;&#x2500; tools/        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ol>
</li>
</ul>
</li>
</ul>
<h2 class="mume-header undefined" id="H-3">3. &#x90E8;&#x7F72;&#x65B9;&#x6848;</h2>

<p>&#x5F53;&#x524D;&#x90E8;&#x7F72;&#x65B9;&#x5F0F;&#x4E3A;&#x5355;&#x673A;&#x7248;&#x90E8;&#x7F72;</p>
<h2 class="mume-header undefined" id="H-4">4. &#x7CFB;&#x7EDF;&#x786C;&#x4EF6;&#x914D;&#x7F6E;</h2>

<h3 class="mume-header undefined" id="H-4-1">4.1 &#x6027;&#x80FD;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;(&#x8D85;&#x9891;)</h3>

<ul>
<li>&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;:
<ol>
<li>BIOS&#x8BBE;&#x7F6E;&#x6027;&#x80FD;&#x6A21;&#x5F0F;<br>
&#x4F9D;&#x636E;&#x670D;&#x52A1;&#x5668;&#x4E3B;&#x677F;&#x63D0;&#x4F9B;&#x5546;&#x4E0D;&#x540C;&#xFF0C;&#x6027;&#x80FD;&#x6A21;&#x5F0F;&#x7684;&#x8BBE;&#x7F6E;&#x53C2;&#x6570;&#x4E5F;&#x6709;&#x6240;&#x4E0D;&#x540C;&#xFF0C;&#x5E38;&#x89C1;&#x8BBE;&#x7F6E;&#x9009;&#x9879;&#x5982;&#x4E0B;&#x3002;<br>
<code>Chipset</code>/<code>Power Policy Quick Settings</code> ==&gt; <code>Best Performance</code><br>
&#x8BBE;&#x7F6E;&#x5B8C;&#x6BD5;&#x540E;&#xFF0C;&#x91CD;&#x542F;&#x670D;&#x52A1;&#x5668;&#x3002;</li>
<li>&#x7EC8;&#x7AEF;&#x6A21;&#x5F0F;&#x4E0B;&#x8BBE;&#x7F6E;&#x6027;&#x80FD;&#x6A21;&#x5F0F;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># &#x5C06;CPU&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;&#x4E3A;&#x6027;&#x80FD;&#x6A21;&#x5F0F;    </span>
$ cpupower frequency-set -g performance 
<span class="token comment"># &#x5173;&#x95ED;&#x7CFB;&#x7EDF;&#x4E2D;&#x65AD;</span>
$ systemctl stop irqbalance 
<span class="token comment"># &#x5173;&#x95ED;numa&#x4E2D;&#x65AD;</span>
$ <span class="token builtin class-name">echo</span> <span class="token number">0</span> <span class="token operator">&gt;</span> /proc/sys/kernel/numa_balancing 
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x67E5;&#x770B;CPU&#x6027;&#x80FD;&#x6A21;&#x5F0F;<br>
&#x5982;&#x679C;&#x547D;&#x4EE4;&#x7ED3;&#x679C;&#x63D0;&#x793A;<code>powersave</code>&#xFF0C;&#x5219;&#x8BF4;&#x660E;&#x5F53;&#x524D;CPU&#x8FD0;&#x8F6C;&#x6A21;&#x5F0F;&#x4E3A;&#x7701;&#x7535;&#x6A21;&#x5F0F;&#x3002;<br>
&#x5982;&#x679C;&#x547D;&#x4EE4;&#x7ED3;&#x679C;&#x63D0;&#x793A;<code>performance</code>&#xFF0C;&#x5219;&#x8BF4;&#x660E;&#x5F53;&#x524D;CPU&#x8FD0;&#x8F6C;&#x6A21;&#x5F0F;&#x4E3A;&#x6027;&#x80FD;&#x6A21;&#x5F0F;&#xFF0C;&#x6027;&#x80FD;&#x6A21;&#x5F0F;&#x8BBE;&#x7F6E;&#x751F;&#x6548;&#x3002;<br>
&#x6B64;&#x8BBE;&#x7F6E;&#x65B9;&#x5F0F;&#xFF0C;&#x4E3A;&#x5373;&#x65F6;&#x751F;&#x6548;&#x65B9;&#x5F0F;&#xFF0C;&#x91CD;&#x542F;&#x540E;&#x4F1A;&#x5931;&#x6548;&#x3002;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">cat</span> /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 
performance
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre><ul>
<li>&#x5907;&#x6CE8;<br>
&#x67E5;&#x770B;CPU&#x5404;&#x6838;&#x5FC3;&#x9891;&#x7387;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># &#x83B7;&#x53D6;&#x6BCF;&#x4E2A;&#x6838;&#x5FC3;&#x7684;&#x7CBE;&#x786E;&#x7684;CPU&#x4E3B;&#x9891;</span>
$ cpupower monitor -m Mperf
<span class="token comment"># &#x67E5;&#x770B;&#x5230;CPU&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;&#x53CA;&#x9891;&#x7387;</span>
$ cpupower frequency-info
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></pre></li>
</ul>
</li>
</ol>
</li>
</ul>
<h3 class="mume-header undefined" id="H-4-2">4.2 NUMA&#x8BBE;&#x7F6E;</h3>

<p>&#x672C;&#x7CFB;&#x7EDF;&#x5EFA;&#x8BAE;: <strong>&#x5173;&#x95ED;NUMA</strong>&#x3002;</p>
<ul>
<li>&#x67E5;&#x770B;NUMA&#x5F00;&#x542F;&#x72B6;&#x6001;<br>
&#x4F7F;&#x7528;<code>dmesg | grep -i numa</code>&#x547D;&#x4EE4;&#xFF0C;&#x67E5;&#x770B;NUMA&#x7684;&#x5F00;&#x5173;&#x72B6;&#x6001;&#x3002;
<ul>
<li>&#x5F00;&#x542F;NUMA&#x4E0B;&#x7684;&#x67E5;&#x8BE2;&#x7ED3;&#x679C;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># key: NUMA: Initialized distance table, cnt=2</span>
$ <span class="token function">dmesg</span> <span class="token operator">|</span><span class="token function">grep</span> -i numa
<span class="token punctuation">[</span>    <span class="token number">0.000000</span><span class="token punctuation">]</span> NUMA: Initialized distance table, <span class="token assign-left variable">cnt</span><span class="token operator">=</span><span class="token number">2</span>
<span class="token punctuation">[</span>    <span class="token number">0.000000</span><span class="token punctuation">]</span> NUMA: Node <span class="token number">0</span> <span class="token punctuation">[</span>mem 0x00000000-0x7fffffff<span class="token punctuation">]</span> + <span class="token punctuation">[</span>mem 0x100000000-0x207fffffff<span class="token punctuation">]</span> -<span class="token operator">&gt;</span> <span class="token punctuation">[</span>mem 0x00000000-0x207fffffff<span class="token punctuation">]</span>
<span class="token punctuation">[</span>    <span class="token number">0.000000</span><span class="token punctuation">]</span> Enabling automatic NUMA balancing. Configure with <span class="token assign-left variable">numa_balancing</span><span class="token operator">=</span> or the kernel.numa_balancing sysctl    
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x5173;&#x95ED;NUMA&#x4E0B;&#x7684;&#x67E5;&#x8BE2;&#x7ED3;&#x679C;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">dmesg</span> <span class="token operator">|</span> <span class="token function">grep</span> -i numa
<span class="token comment"># OS&#x5C42;&#x9762;&#x5173;&#x95ED;NUMA&#x65F6;&#xFF0C;&#x4E00;&#x822C;&#x4F1A;&#x63D0;&#x793A;:</span>
NUMA turned off

$ <span class="token function">dmesg</span> <span class="token operator">|</span> <span class="token function">grep</span> -i numa
<span class="token comment"># BIOS&#x5C42;&#x9762;&#x5173;&#x95ED;&#x65F6;&#xFF0C;&#x4F1A;&#x63D0;&#x793A;</span>
<span class="token punctuation">[</span>    <span class="token number">0.000000</span><span class="token punctuation">]</span> No NUMA configuration found
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre><ul>
<li><mark>&#x63D0;&#x793A;&#xFF1A;</mark><br>
&#x5728;os&#x5C42;numa&#x5173;&#x95ED;&#x65F6;,&#x6253;&#x5F00;bios&#x5C42;&#x7684;numa&#x4F1A;&#x5F71;&#x54CD;&#x6027;&#x80FD;&#xFF0C;QPS&#x4F1A;&#x4E0B;&#x964D;15-30%;<br>
&#x5728;bios&#x5C42;&#x9762;numa&#x5173;&#x95ED;&#x65F6;&#xFF0C;&#x65E0;&#x8BBA;os&#x5C42;&#x9762;&#x7684;numa&#x662F;&#x5426;&#x6253;&#x5F00;&#xFF0C;&#x90FD;&#x4E0D;&#x4F1A;&#x5F71;&#x54CD;&#x6027;&#x80FD;&#x3002;</li>
</ul>
</li>
</ul>
</li>
<li>&#x5173;&#x95ED;NUMA<br>
&#x4E24;&#x79CD;&#x5173;&#x95ED;&#x65B9;&#x5F0F;: <code>BIOS</code>&#x914D;&#x7F6E; &#x6216; <code>GRUB</code>&#x53C2;&#x6570;&#x914D;&#x7F6E;&#xFF0C;&#x63A8;&#x8350;&#x4F7F;&#x7528;: <strong>BIOS&#x8BBE;&#x7F6E;&#x65B9;&#x5F0F;</strong>&#x3002;&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;&#x5982;&#x4E0B;:
<ol>
<li>&#x901A;&#x8FC7;bios&#x5173;&#x95ED;<br>
&#x4E3B;&#x677F;&#x5382;&#x5546;&#x4E0D;&#x540C;&#xFF0C;&#x8BBE;&#x7F6E;&#x9009;&#x9879;&#x4E5F;&#x4E0D;&#x5C3D;&#x76F8;&#x540C;&#x3002;&#x5728;BIOS&#x4E2D;&#xFF0C;&#x5E38;&#x7528;&#x8BBE;&#x7F6E;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;:<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">BIOS/Chipset/Common RefCode Configuration: Numa <span class="token operator">==</span><span class="token operator">&gt;</span> Disable 
<span class="token comment"># &#x6216;</span>
BIOS:interleave <span class="token builtin class-name">:</span> <span class="token operator">==</span><span class="token operator">&gt;</span> Disable
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></pre></li>
<li>&#x901A;&#x8FC7;OS&#x5173;&#x95ED;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># &#x4FEE;&#x6539;grub &#x6587;&#x4EF6;</span>
$ <span class="token function">vim</span> /etc/default/grub.conf
<span class="token assign-left variable">GRUB_CMDLINE_LINUX</span><span class="token operator">=</span><span class="token string">&quot;...... numa=off&quot;</span>

<span class="token comment"># &#x91CD;&#x65B0;&#x751F;&#x6210; /etc/grub2.cfg &#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="token comment"># GTP&#x5206;&#x533A;</span>
$ grub2-mkconfig -o /boot/grub2/grub.cfg //<span class="token punctuation">(</span>&#x82E5;&#x4E3A;GTP&#x5206;&#x533A;<span class="token punctuation">)</span>
<span class="token comment"># EFI&#x5206;&#x533A;</span>
$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg //<span class="token punctuation">(</span>&#x82E5;&#x4E3A;EFI&#x5206;&#x533A;<span class="token punctuation">)</span>
<span class="token comment"># &#x91CD;&#x542F;</span>
$ <span class="token function">reboot</span>
<span class="token comment"># &#x786E;&#x8BA4;</span>
$ <span class="token function">dmesg</span> <span class="token operator">|</span> <span class="token function">grep</span> -i numa
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ol>
</li>
<li>&#x67E5;&#x8BE2;NUMA&#x8282;&#x70B9;&#x4FE1;&#x606F;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ lscpu
<span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
CPU<span class="token punctuation">(</span>s<span class="token punctuation">)</span>:                <span class="token number">56</span>
On-line CPU<span class="token punctuation">(</span>s<span class="token punctuation">)</span> list:   <span class="token number">0</span>-55
<span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
NUMA node<span class="token punctuation">(</span>s<span class="token punctuation">)</span>:          <span class="token number">1</span>
<span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
NUMA node0 CPU<span class="token punctuation">(</span>s<span class="token punctuation">)</span>:     <span class="token number">0</span>-55
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre>&#x4ECE;&#x4E0A;&#x8FF0;&#x4FE1;&#x606F;&#x53EF;&#x4EE5;&#x770B;&#x51FA;&#xFF0C;CPU&#x5171;&#x6709;56&#x4E2A;&#x6838;&#x5FC3;&#xFF0C;&#x6838;&#x5FC3;&#x7F16;&#x53F7;&#x4E3A;0-55&#x3002;&#x4E14;NUMA&#x8282;&#x70B9;&#x53EA;&#x6709;1&#x4E2A;&#xFF0C;&#x6240;&#x5360;CPU&#x6838;&#x5FC3;&#x5217;&#x8868;&#x4E3A;0-55&#xFF0C;&#x4EA6;&#x5373;&#xFF0C;NUMA0&#x8282;&#x70B9;&#x7528;&#x4E86;&#x5168;&#x90E8;CPU&#x6838;&#x5FC3;&#x3002;</li>
</ul>
<h3 class="mume-header undefined" id="H-4-3">4.3 &#x914D;&#x7F6E;&#x5927;&#x9875;&#x5185;&#x5B58;</h3>

<p>&#x4FEE;&#x6539;&#x7CFB;&#x7EDF;&#x5F15;&#x5BFC;grub&#x6587;&#x4EF6;&#xFF0C;&#x5B8C;&#x6210;&#x5BF9;&#x5927;&#x9875;&#x5185;&#x5B58;&#x7684;&#x5206;&#x914D;&#x3002;</p>
<ol>
<li>&#x786E;&#x5B9A;&#x5206;&#x533A;&#x8868;&#x7C7B;&#x578B;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">mount</span> <span class="token operator">|</span> <span class="token function">grep</span> boot
<span class="token comment"># GPT&#x5206;&#x533A;</span>
/dev/sdc1 on /boot <span class="token builtin class-name">type</span> xfs
<span class="token comment"># UEFI&#x5206;&#x533A;</span>
/dev/md126p2 on /boot
/dev/md126p1 on /boot/efi        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x6839;&#x636E;&#x5206;&#x533A;&#x8868;&#x7C7B;&#x578B;&#xFF0C;&#x8BBE;&#x7F6E;grub&#x5927;&#x9875;&#x5185;&#x5B58;&#x53C2;&#x6570;
<ul>
<li>GPT&#x5206;&#x533A;&#x4E0B;&#x7684;&#x5927;&#x9875;&#x5185;&#x5B58;&#x914D;&#x7F6E;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">vim</span> /etc/default/grub
<span class="token comment"># &#x627E;&#x5230;GRUB_CMDLINE_LINUX&#xFF0C;&#x7136;&#x540E;&#x5728;&#x540E;&#x9762;&#x8FFD;&#x52A0;&#x4EE5;&#x4E0B;&#x53C2;&#x6570;&#xFF0C;&#x5177;&#x4F53;&#x6570;&#x503C;&#x8BF7;&#x4EE5;&#x5B9E;&#x9645;&#x73AF;&#x5883;&#x4E3A;&#x51C6;</span>
<span class="token assign-left variable">transparent_hugepage</span><span class="token operator">=</span>never <span class="token assign-left variable">default_hugepagesz</span><span class="token operator">=</span>1G <span class="token assign-left variable">hugepagesz</span><span class="token operator">=</span>1G <span class="token assign-left variable">hugepages</span><span class="token operator">=</span><span class="token number">50</span> <span class="token assign-left variable">iommu</span><span class="token operator">=</span>pt <span class="token assign-left variable">intel_iommu</span><span class="token operator">=</span>on

<span class="token comment"># &#x66F4;&#x65B0;&#x542F;&#x52A8;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
$ grub2-mkconfig -o /boot/grub2/grub.cfg
<span class="token comment"># &#x91CD;&#x542F;&#x673A;&#x5668;</span>
$ <span class="token function">reboot</span>
<span class="token comment"># &#x67E5;&#x770B;&#x53C2;&#x6570;&#x662F;&#x5426;&#x751F;&#x6548;</span>
$ <span class="token function">cat</span> /proc/cmdline
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>UEFI&#x5206;&#x533A;&#x4E0B;&#x7684;&#x5927;&#x9875;&#x5185;&#x5B58;&#x914D;&#x7F6E;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">vim</span> /etc/default/grub
<span class="token comment"># &#x627E;&#x5230;GRUB_CMDLINE_LINUX&#xFF0C;&#x7136;&#x540E;&#x5728;&#x540E;&#x9762;&#x8FFD;&#x52A0;&#x4EE5;&#x4E0B;&#x53C2;&#x6570;&#xFF0C;&#x5177;&#x4F53;&#x6570;&#x503C;&#x8BF7;&#x4EE5;&#x5B9E;&#x9645;&#x73AF;&#x5883;&#x4E3A;&#x51C6;</span>
<span class="token assign-left variable">transparent_hugepage</span><span class="token operator">=</span>never <span class="token assign-left variable">default_hugepagesz</span><span class="token operator">=</span>1G <span class="token assign-left variable">hugepagesz</span><span class="token operator">=</span>1G <span class="token assign-left variable">hugepages</span><span class="token operator">=</span><span class="token number">50</span> <span class="token assign-left variable">iommu</span><span class="token operator">=</span>pt <span class="token assign-left variable">intel_iommu</span><span class="token operator">=</span>on

<span class="token comment"># &#x66F4;&#x65B0;&#x542F;&#x52A8;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
$ grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
<span class="token comment"># &#x91CD;&#x542F;&#x673A;&#x5668;</span>
$ <span class="token function">reboot</span>
<span class="token comment"># &#x67E5;&#x770B;&#x53C2;&#x6570;&#x662F;&#x5426;&#x751F;&#x6548;</span>
$ <span class="token function">cat</span> /proc/cmdline
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ul>
</li>
<li>&#x91CD;&#x542F;&#x670D;&#x52A1;&#x5668;&#x540E;&#xFF0C;&#x68C0;&#x67E5;&#x5927;&#x9875;&#x5185;&#x5B58;&#x7684;&#x914D;&#x7F6E;&#x662F;&#x5426;&#x751F;&#x6548;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># cat /proc/meminfo |grep Huge</span>
AnonHugePages:         <span class="token number">0</span> kB
HugePages_Total:      <span class="token number">50</span>
HugePages_Free:       <span class="token number">50</span>
HugePages_Rsvd:        <span class="token number">0</span>
HugePages_Surp:        <span class="token number">0</span>
Hugepagesize:    <span class="token number">1048576</span> kB        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre>&#x53EF;&#x89C1;&#x5927;&#x9875;&#x5185;&#x5B58;&#x6BCF;&#x4E2A;&#x5927;&#x9875;&#x5927;&#x5C0F;&#x4E3A;1048576kB(1GB)&#xFF0C;&#x603B;&#x9875;&#x6570;&#x4E3A;50&#x5927;&#x9875;&#x3002;&#x4E0E;&#x4E0A;&#x9762;&#x6240;&#x914D;&#x7F6E;&#x53C2;&#x6570;&#x76F8;&#x4E00;&#x81F4;&#x3002;</li>
</ol>
<h2 class="mume-header undefined" id="H-5">5. &#x8F6F;&#x4EF6;&#x4F9D;&#x8D56;&#x5E93;&#x914D;&#x7F6E;</h2>

<h3 class="mume-header undefined" id="H-5-1">5.1 &#x8F6F;&#x4EF6;&#x4F9D;&#x8D56;&#x5E93;&#x6982;&#x8FF0;</h3>

<p>&#x8FD9;&#x91CC;&#x7684;&#x8F6F;&#x4EF6;&#x4F9D;&#x8D56;&#x5E93;&#xFF0C;&#x4E3B;&#x8981;&#x6D89;&#x53CA;&#x672C;&#x9879;&#x76EE;&#x6240;&#x4F9D;&#x8D56;&#x7684;<code>&#x7CFB;&#x7EDF;yum&#x5E93;</code>&#x53CA;<code>&#x7B2C;&#x4E09;&#x65B9;&#x5F00;&#x6E90;&#x5E93;</code>&#x3002;<br>
&#x524D;&#x8005;&#x4E00;&#x822C;&#x4F7F;&#x7528;<code>yum</code>&#x547D;&#x4EE4;&#x8FDB;&#x884C;&#x5728;&#x7EBF;&#x6216;&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#xFF0C;&#x540E;&#x8005;&#x9700;&#x8981;&#x5355;&#x72EC;&#x4E0B;&#x8F7D;&#x5B89;&#x88C5;&#x5305;&#x8FDB;&#x884C;&#x5B89;&#x88C5;&#x3002;<br>
&#x5BF9;&#x4E8E;<code>&#x7B2C;&#x4E09;&#x65B9;&#x4F9D;&#x8D56;&#x5E93;</code>&#xFF0C;&#x5176;&#x6700;&#x7EC8;&#x5B89;&#x88C5;&#x76EE;&#x6807;&#x8DEF;&#x5F84;&#xFF0C;&#x5236;&#x5B9A;&#x8BBE;&#x7F6E;&#x89C4;&#x5219;&#x5982;&#x4E0B;&#x3002;</p>
<ul>
<li><code>&#x7B2C;&#x4E09;&#x65B9;&#x5F00;&#x6E90;&#x5E93;</code>&#x7684;&#x5404;&#x7C7B;&#x76EE;&#x5F55;&#x8BBE;&#x7F6E;&#x89C4;&#x5219;(&#x4EE5;DPDK&#x4E3A;&#x4F8B;)
<ul>
<li>&#x539F;&#x59CB;&#x5B89;&#x88C5;&#x5305;&#x76EE;&#x5F55;<br>
<code>/opt/soft</code></li>
<li>&#x5B89;&#x88C5;&#x540E;&#x7684;&#x5934;&#x6587;&#x4EF6;&#x76EE;&#x5F55;&#x8DEF;&#x5F84;<br>
<code>/usr/local/include/dpdk/</code>
<ul>
<li>&#x63D0;&#x793A;:
<ol>
<li>&#x5728;<code>/usr/local/include</code>&#x76EE;&#x5F55;&#x4E0B;&#x65B0;&#x5EFA;&#x4EE5;&#x5F00;&#x6E90;&#x5E93;&#x547D;&#x540D;&#x7684;&#x5B50;&#x76EE;&#x5F55;</li>
</ol>
</li>
</ul>
</li>
<li>&#x5B89;&#x88C5;&#x540E;&#x7684;&#x5E93;&#x76EE;&#x5F55;&#x8DEF;&#x5F84;<br>
<code>/usr/local/lib/</code>
<ul>
<li>&#x63D0;&#x793A;:
<ol>
<li>&#x5728;<code>/usr/local/lib</code>&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x6240;&#x6709;&#x5F00;&#x6E90;&#x5E93;&#x7684;&#x5E93;&#x6587;&#x4EF6;&#xFF0C;&#x4E0D;&#x518D;&#x7EC6;&#x5206;&#x5B50;&#x76EE;&#x5F55;&#x3002;<br>
e.g.:</li>
</ol>
</li>
</ul>
<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ tree /usr/local/include/ -L <span class="token number">1</span>  -F
/usr/local/include/
&#x251C;&#x2500;&#x2500; dpdk/
&#x2514;&#x2500;&#x2500; leveldb/            

$ tree /usr/local/lib  -L <span class="token number">1</span> -F
/usr/local/lib
&#x251C;&#x2500;&#x2500; kmod/
&#x251C;&#x2500;&#x2500; libdpdk.so
&#x251C;&#x2500;&#x2500; librte_acl.so -<span class="token operator">&gt;</span> librte_acl.so.20.0*
&#x251C;&#x2500;&#x2500; librte_acl.so.20.0*
&#x251C;&#x2500;&#x2500; librte_bbdev.so -<span class="token operator">&gt;</span> librte_bbdev.so.0.200*            
<span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
<span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ul>
</li>
</ul>
<h3 class="mume-header undefined" id="H-5-2">5.2 yum&#x4F9D;&#x8D56;&#x5E93;&#x90E8;&#x7F72;</h3>

<ul>
<li>yum&#x6E90;&#x4F9D;&#x8D56;&#x5E93;&#x7684;&#x5B89;&#x88C5;
<ul>
<li>
<p>&#x5728;&#x7EBF;&#x5B89;&#x88C5;&#x65B9;&#x5F0F;<br>
(&#x7565;)</p>
  <details>
  * &#x8FD0;&#x7EF4;&#x4F9D;&#x8D56;yum&#x5E93;
      ```shell {.line-numbers}
      $ yum -y install  epel-release 
      $ yum -y install tree htop stress screen nc tcpreplay perf lrzsz
      $ yum -y install unzip lsof mlocate rsync dos2unix 
      ```
  * &#x4EA7;&#x54C1;&#x4F9D;&#x8D56;yum&#x5E93;
      ```shell {.line-numbers}
      # &#x7F16;&#x8BD1;&#x73AF;&#x5883;
      $ yum -y install cmake gdb gcc-c++ scons
<pre class="language-text">  # leveldb/readline/ncurses ......
  $ yum -y install ncurses-devel openssl-devel readline-devel libpcap-devel

  # leveldb
  $ yum -y install leveldb leveldb-devel

  # numa
  $ yum -y install numactl-devel libnuma-dev 
  ```
</pre>
  </details>
</li>
<li>
<p>&#x79BB;&#x7EBF;&#x5B89;&#x88C5;&#x65B9;&#x5F0F;</p>
<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> /opt/soft
$ <span class="token function">tar</span> xvf namdsig.depend.sys.tar.gz
$ <span class="token builtin class-name">cd</span> namdsig.depend.sys
$ <span class="token function">rpm</span> -ivh *.rpm
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></pre></li>
</ul>
</li>
</ul>
<h3 class="mume-header undefined" id="H-5-3">5.3 DPDK&#x4F9D;&#x8D56;&#x5E93;&#x90E8;&#x7F72;</h3>

<p>&#x672C;&#x4EA7;&#x54C1;&#x5305;&#x4E2D;&#x5DF2;&#x643A;&#x5E26;DPDK&#x5E93;&#xFF0C;&#x56E0;&#x6B64;&#x5728;&#x4EA7;&#x54C1;&#x5305;&#x5728;&#x5B89;&#x88C5;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;DPDK&#x5E93;&#x540C;&#x65F6;&#x4E5F;&#x88AB;&#x5B89;&#x88C5;&#x597D;&#x4E86;&#x3002;<br>
&#x4F46;&#x662F;&#x7531;&#x4E8E;&#x6BCF;&#x4E2A;&#x670D;&#x52A1;&#x5668;&#x7684;&#x7F51;&#x5361;&#x786C;&#x4EF6;&#x5730;&#x5740;&#x4E0D;&#x540C;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x6839;&#x636E;&#x5177;&#x4F53;&#x4E1A;&#x52A1;&#x573A;&#x666F;&#xFF0C;&#x6765;&#x9009;&#x62E9;&#x6536;&#x6D41;&#x7F51;&#x5361;&#x63A5;&#x53E3;&#xFF0C;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x7B80;&#x5355;&#x914D;&#x7F6E;&#x3002;</p>
<ol>
<li>&#x8BBE;&#x7F6E;DPDK&#x6536;&#x6D41;&#x7F51;&#x5361;&#x5730;&#x5740;&#x53CA;&#x5360;&#x7528;&#x5927;&#x9875;&#x5185;&#x5B58;&#x5927;&#x5C0F;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> /usr/local/lib/usertools
<span class="token comment"># &#x8BBE;&#x7F6E;&#x5927;&#x9875;&#x5185;&#x5B58;&#x6570;&#x91CF;&#xFF0C;&#x53CA;&#x7F51;&#x5361;&#x786C;&#x4EF6;&#x5730;&#x5740;</span>
$ <span class="token function">vim</span> ./dpdk_env_set.sh 
    <span class="token comment"># &#x6B64;&#x5904;&#x8BBE;&#x7F6E;&#x5B9E;&#x9645;&#x6536;&#x5305;DPDK&#x7F51;&#x5361;&#x786C;&#x4EF6;&#x5730;&#x5740;</span>
    <span class="token assign-left variable">DPDK_BIND_NICS</span><span class="token operator">=</span><span class="token string">&quot;3b:00.0&quot;</span>
    <span class="token assign-left variable">DPDK_DRIVER_NAME</span><span class="token operator">=</span><span class="token string">&quot;i40e&quot;</span>
    <span class="token assign-left variable">DPDK_DEVICE_NAME</span><span class="token operator">=</span><span class="token string">&quot;X710&quot;</span>
    <span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
    <span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
    <span class="token comment"># &#x6B64;&#x5904;&#x8BBE;&#x7F6E;&#x5927;&#x9875;&#x5185;&#x5B58;&#x5927;&#x5C0F;</span>
    <span class="token comment"># --init)</span>
        /bin/echo <span class="token string">&quot;start init dpdk...&quot;</span>
        set_non_numa_pages <span class="token number">40</span>
    <span class="token punctuation">..</span><span class="token punctuation">..</span><span class="token punctuation">..</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre><ul>
<li>&#x5907;&#x6CE8;<br>
dpdk_env_set.sh&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#xFF1A;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># ./dpdk_env_set.sh </span>
Welcome enter x86_64 platform<span class="token operator">!</span>
Usage: 
    ./dpdk_env_set.sh --compile-dpdk        <span class="token operator">|</span> Compile dpdk to lib and so
    ./dpdk_env_set.sh --init                <span class="token operator">|</span> Set HugePage and <span class="token builtin class-name">bind</span> nic
    ./dpdk_env_set.sh --clear               <span class="token operator">|</span> Clear dpdk setting
    ./dpdk_env_set.sh --showinfo            <span class="token operator">|</span> Show info <span class="token keyword keyword-for">for</span> hugepage and nic        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ul>
</li>
<li>&#x7ED1;&#x5B9A;DPDK&#x7F51;&#x5361;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ ./dpdk_env_set.sh --init
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre></li>
<li>&#x663E;&#x793A;&#x5927;&#x9875;&#x5185;&#x5B58;&#x53CA;&#x7ED1;&#x5B9A;&#x60C5;&#x51B5;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ ./dpdk_env_set.sh --showinfo
Welcome enter x86_64 platform<span class="token operator">!</span>
------------ hugepage ------------
AnonHugePages:         <span class="token number">0</span> kB
HugePages_Total:      <span class="token number">40</span>
HugePages_Free:       <span class="token number">36</span>
HugePages_Rsvd:        <span class="token number">0</span>
HugePages_Surp:        <span class="token number">0</span>
Hugepagesize:    <span class="token number">1048576</span> kB

------------ <span class="token builtin class-name">bind</span> nics -------------

Network devices using DPDK-compatible driver
<span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span>
0000:3b:00.0 <span class="token string">&apos;Ethernet Controller X710 for 10GbE SFP+ 1572&apos;</span> <span class="token assign-left variable">drv</span><span class="token operator">=</span>igb_uio <span class="token assign-left variable">unused</span><span class="token operator">=</span>i40e

Network devices using kernel driver
<span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">==</span><span class="token operator">=</span>
0000:02:00.0 <span class="token string">&apos;I350 Gigabit Network Connection 1521&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>eno1 <span class="token assign-left variable">drv</span><span class="token operator">=</span>igb <span class="token assign-left variable">unused</span><span class="token operator">=</span>igb_uio *Active*
0000:02:00.1 <span class="token string">&apos;I350 Gigabit Network Connection 1521&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>eno2 <span class="token assign-left variable">drv</span><span class="token operator">=</span>igb <span class="token assign-left variable">unused</span><span class="token operator">=</span>igb_uio 
0000:3b:00.1 <span class="token string">&apos;Ethernet Controller X710 for 10GbE SFP+ 1572&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>enp59s0f1 <span class="token assign-left variable">drv</span><span class="token operator">=</span>i40e <span class="token assign-left variable">unused</span><span class="token operator">=</span>igb_uio 
0000:3b:00.2 <span class="token string">&apos;Ethernet Controller X710 for 10GbE SFP+ 1572&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>enp59s0f2 <span class="token assign-left variable">drv</span><span class="token operator">=</span>i40e <span class="token assign-left variable">unused</span><span class="token operator">=</span>igb_uio 
0000:3b:00.3 <span class="token string">&apos;Ethernet Controller X710 for 10GbE SFP+ 1572&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>enp59s0f3 <span class="token assign-left variable">drv</span><span class="token operator">=</span>i40e <span class="token assign-left variable">unused</span><span class="token operator">=</span>igb_uio     
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
</ol>
<h2 class="mume-header undefined" id="H-6">6. NamdSig&#x90E8;&#x7F72;</h2>

<ul>
<li>NamdSig&#x5B89;&#x88C5;&#x76EE;&#x5F55;<br>
&#x5EFA;&#x8BAE;&#x65B0;&#x5EFA;&#x7EDF;&#x4E00;&#x90E8;&#x7F72;&#x7528;&#x6237;&#xFF0C;&#x5355;&#x72EC;&#x76EE;&#x5F55;&#xFF0C;&#x5355;&#x72EC;&#x5B89;&#x88C5;&#x3002;</li>
<li>&#x4F7F;&#x7528;<code>do_deployment.sh</code>&#x81EA;&#x7814;&#x811A;&#x672C;&#x8FDB;&#x884C;NamdSig&#x7684;&#x4E00;&#x952E;&#x5F0F;&#x90E8;&#x7F72;&#xFF1A;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ ./do_deployment.sh namdsig_v1.0.0_r136.tar.gz /home/namdsig
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre></li>
</ul>
<h2 class="mume-header undefined" id="H-7">7. NamdSig&#x8FD0;&#x884C;</h2>

<p>&#x5728;&#x5B8C;&#x6210;<code>yum&#x4F9D;&#x8D56;&#x5E93;</code>&#x53CA;<code>&#x7B2C;&#x4E09;&#x65B9;&#x4F9D;&#x8D56;&#x5E93;</code>&#x5B89;&#x88C5;&#x5E76;&#x8FDB;&#x884C;&#x6B63;&#x786E;&#x914D;&#x7F6E;&#x540E;&#xFF0C;&#x53EF;&#x6267;&#x884C;<code>NamdSig</code>&#x7A0B;&#x5E8F;&#x3002;</p>
<ul>
<li>&#x64CD;&#x4F5C;&#x6B65;&#x9AA4;&#x5982;&#x4E0B;:<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> NamdSig
$ ./do_run.sh
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre><ul>
<li>&#x624B;&#x52A8;&#x542F;&#x52A8;&#x7A0B;&#x5E8F;&#x6B65;&#x9AA4;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">export</span> <span class="token assign-left variable">LD_LIBRARY_PATH</span><span class="token operator">=</span>lib/
$ ./edas -c 0x1ff0003fff -f edas.conf
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre></li>
<li>&#x53C2;&#x6570;&#x8BF4;&#x660E;
<ul>
<li>-c <code>&lt;cpumask&gt;</code><br>
CPU&#x63A9;&#x7801;&#x53C2;&#x6570;&#xFF0C;&#x540E;&#x63A5;CPU&#x63A9;&#x7801;&#x3002;&#x7F3A;&#x5931;&#x60C5;&#x51B5;&#x4E0B;&#x5219;&#x8868;&#x793A;&#x8F93;&#x5165;&#x6E90;&#x4E3A;&#x6587;&#x4EF6;&#x6216;&#x76EE;&#x5F55;&#x3002;<br>
&#x5177;&#x4F53;CPU&#x63A9;&#x7801;&#x7684;&#x8BBE;&#x5B9A;&#x6570;&#x91CF;&#x4F9D;&#x8D56;&#x4E8E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;<code>[DPDK]/[ThreadNum]</code>&#x914D;&#x7F6E;&#x9879;&#x3002;&#x547D;&#x4EE4;&#x53C2;&#x6570;&#x4E2D;&#x7684;CPU&#x63A9;&#x7801;&#x4E2A;&#x6570; = [DPDK]/[ThreadNum]&#x8BBE;&#x7F6E;&#x503C; + 3</li>
<li>-f <code>&lt;edas.conf&gt;</code><br>
&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x53C2;&#x6570;&#xFF0C;&#x540E;&#x63A5;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x3002;</li>
</ul>
</li>
</ul>
</li>
</ul>
<h2 class="mume-header undefined" id="H-8">8. FAQ</h2>

<ol>
<li>Illegal instruction (core dumped)<br>
A: &#x7F16;&#x8BD1;dpdk&#x7684;&#x673A;&#x5668;&#x7684;CPU&#x7248;&#x672C;&#x8F83;&#x9AD8;&#xFF0C;&#x800C;&#x8FD0;&#x884C;dpdk&#x7684;&#x673A;&#x5668;&#x7684;CPU&#x7248;&#x672C;&#x8FC7;&#x4F4E;&#xFF0C;&#x5BFC;&#x81F4;&#x7A0B;&#x5E8F;&#x8FD0;&#x884C;&#x8FC7;&#x7A0B;&#x4E2D;&#x5F15;&#x7528;&#x4E86;&#x4E0D;&#x652F;&#x6301;&#x7684;CPU&#x6307;&#x4EE4;&#x3002;&#x8FD0;&#x884C;&#x673A;&#x4E0E;&#x7F16;&#x8BD1;&#x673A;&#x5728;&#x914D;&#x7F6E;&#x4E0A;&#x987B;&#x4FDD;&#x6301;&#x517C;&#x5BB9;&#x3002;</li>
<li><code>./dpdk-devbind.py --status</code>&#x547D;&#x4EE4;&#x4E0B;&#x63D0;&#x793A;<code>unused=</code>&#xFF0C;&#x4E0D;&#x663E;&#x793A;igb_uio&#x9A71;&#x52A8;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">0000:18:00.1 <span class="token string">&apos;Ethernet Controller X710 for 10GbE SFP+ 1572&apos;</span> <span class="token assign-left variable">if</span><span class="token operator">=</span>eno2 <span class="token assign-left variable">drv</span><span class="token operator">=</span>i40e <span class="token assign-left variable">unused</span><span class="token operator">=</span> 
<span aria-hidden="true" class="line-numbers-rows"><span></span></span></pre>A: dpdk&#x811A;&#x672C;&#x672A;&#x627E;&#x5230;<code>igb_uio</code>&#x5185;&#x6838;&#x9A71;&#x52A8;&#xFF0C;&#x9700;&#x8981;&#x91CD;&#x65B0;&#x52A0;&#x8F7D;&#x3002;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> /usr/local/lib/usertools/
$ modprobe uio
$ insmod <span class="token punctuation">..</span>/kmod/igb_uio.ko
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></pre></li>
</ol>
<h2 class="mume-header undefined" id="H-9">9. &#x9644;&#x5F55;</h2>

<h3 class="mume-header undefined" id="H-9-1">9.1 edas.conf&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>

<h3 class="mume-header undefined" id="H-9-2">9.2 yum&#x914D;&#x7F6E;&#x65B9;&#x6CD5;</h3>

<ul>
<li>&#x914D;&#x7F6E;&#x6B65;&#x9AA4;
<ol>
<li>&#x5907;&#x4EFD;&#x672C;&#x5730;yum&#x6E90;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> /etc/yum.repos.d/
$ <span class="token function">mkdir</span> zz <span class="token operator">&amp;&amp;</span> <span class="token function">mv</span> <span class="token punctuation">[</span>^z<span class="token punctuation">]</span>* zz
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre></li>
<li>&#x83B7;&#x53D6;&#x56FD;&#x5185;yum&#x6E90;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># yum&#x6E90;</span>
$ <span class="token function">wget</span> -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
<span class="token comment"># epel&#x6E90;</span>
$ <span class="token function">wget</span> -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
$ <span class="token function">cat</span> /etc/redhat-release
CentOS Linux release <span class="token number">7.4</span>.1708 <span class="token punctuation">(</span>Core<span class="token punctuation">)</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x4FEE;&#x6539;yum&#x914D;&#x7F6E;&#x4FE1;&#x606F;<br>
&#x9ED8;&#x8BA4;&#x60C5;&#x51B5;&#x4E0B;&#x662F;&#x7CFB;&#x7EDF;&#x548C;&#x5185;&#x6838;&#x5171;&#x540C;&#x5347;&#x7EA7;&#x7684;&#xFF0C;&#x5982;&#x679C;&#x53EA;&#x5347;&#x7EA7;&#x7CFB;&#x7EDF;&#x4E0D;&#x5347;&#x7EA7;&#x5185;&#x6838;&#xFF0C;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x4E00;&#x4E0B;&#x914D;&#x7F6E;&#x9879;&#xFF0C;&#x5982;&#x4E0B;&#x3002;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token function">vim</span> /etc/yum.conf
    <span class="token assign-left variable">cachedir</span><span class="token operator">=</span>/var/cache/yum/<span class="token variable">$basearch</span>/<span class="token variable">$releasever</span>
    <span class="token assign-left variable">keepcache</span><span class="token operator">=</span><span class="token number">1</span> //&#x8FD9;&#x91CC;&#x914D;&#x7F6E;&#x662F;&#x5426;&#x9700;&#x8981;&#x4FDD;&#x5B58;&#x4E0B;&#x8F7D;&#x7684;&#x8F6F;&#x4EF6;&#x5305;
    <span class="token assign-left variable">debuglevel</span><span class="token operator">=</span><span class="token number">2</span>
    <span class="token assign-left variable">logfile</span><span class="token operator">=</span>/var/log/yum.log
    <span class="token assign-left variable">exactarch</span><span class="token operator">=</span><span class="token number">1</span>
    <span class="token assign-left variable">obsoletes</span><span class="token operator">=</span><span class="token number">1</span>
    <span class="token assign-left variable">gpgcheck</span><span class="token operator">=</span><span class="token number">1</span>
    <span class="token assign-left variable">plugins</span><span class="token operator">=</span><span class="token number">1</span>
    <span class="token assign-left variable">installonly_limit</span><span class="token operator">=</span><span class="token number">5</span>
    <span class="token assign-left variable">bugtracker_url</span><span class="token operator">=</span>http://bugs.centos.org/set_project.php?project_id<span class="token operator">=</span><span class="token number">23</span><span class="token operator">&amp;</span><span class="token assign-left variable">ref</span><span class="token operator">=</span>http://bugs.centos.org/bug_report_page.php?category<span class="token operator">=</span>yum
    <span class="token assign-left variable">distroverpkg</span><span class="token operator">=</span>centos-release
    <span class="token comment"># &#x5347;&#x7EA7;&#x7CFB;&#x7EDF;&#x4E0D;&#x5347;&#x7EA7;&#x5185;&#x6838;</span>
    <span class="token assign-left variable">exclude</span><span class="token operator">=</span>kernel*
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x6E05;&#x7406;&#x7F13;&#x5B58;&#x3001;&#x91CD;&#x5EFA;&#x7F13;&#x5B58;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ yum clean all
$ yum makecache
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span></span></pre></li>
</ol>
</li>
<li>&#x672C;&#x5730;yum&#x5236;&#x4F5C;
<ol>
<li>&#x5C06;OS&#x955C;&#x50CF;&#x6587;&#x4EF6;CentOS-7-aarch64-Everything-1810.iso&#x62F7;&#x8D1D;&#x5230;&#x6BCF;&#x53F0;&#x670D;&#x52A1;&#x5668;&#x7684;&#x201C;/root&#x201D;&#x76EE;&#x5F55;&#x4E0B;&#x3002;</li>
<li>&#x6302;&#x8F7D;&#x955C;&#x50CF;&#x6587;&#x4EF6;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers"><span class="token comment"># &#x5373;&#x65F6;&#x751F;&#x6548;&#x65B9;&#x5F0F;</span>
$ <span class="token function">mount</span> /root/<span class="token operator">&lt;</span>xxx<span class="token operator">&gt;</span>.iso /mnt

<span class="token comment"># &#x5F00;&#x673A;&#x81EA;&#x52A8;&#x6302;&#x8F7D;&#x65B9;&#x5F0F;(&#x53EF;&#x9009;)</span>
$ <span class="token function">vim</span> /etc/fstab
/root/<span class="token operator">&lt;</span>xxx<span class="token operator">&gt;</span>.iso /mnt iso9660 loop <span class="token number">0</span> <span class="token number">0</span>
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x6DFB;&#x52A0;&#x672C;&#x5730;&#x6E90;&#x6587;&#x4EF6;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ <span class="token builtin class-name">cd</span> /etc/yum.repos.d
$ mkidr backup
$ <span class="token function">mv</span> *.repo backup
$ <span class="token function">vim</span> <span class="token function">vim</span> local.repo
<span class="token punctuation">[</span>local<span class="token punctuation">]</span> 
<span class="token assign-left variable">name</span><span class="token operator">=</span>local repo 
<span class="token assign-left variable">baseurl</span><span class="token operator">=</span>file:///mnt 
<span class="token assign-left variable">enabled</span><span class="token operator">=</span><span class="token number">1</span>        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></li>
<li>&#x751F;&#x6548;&#x672C;&#x5730;&#x6E90;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ yum clean all 
$ yum makecache 
$ yum list        
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span></span></pre></li>
<li>&#x5B89;&#x88C5;&#x4F9D;&#x8D56;&#x5305;<pre data-role="codeBlock" data-info="shell {.line-numbers}" class="language-shell line-numbers">$ yum  <span class="token function">install</span>  kernel-devel
$ yum  <span class="token function">install</span>  numactl-devel
$ yum  <span class="token function">install</span>  libibverbs-utils
$ yum  <span class="token function">install</span>  libmnl-devel
<span aria-hidden="true" class="line-numbers-rows"><span></span><span></span><span></span><span></span></span></pre></li>
</ol>
</li>
</ul>

      </div>
      
      
    
    
    
    
    
    
    
    
  
    </body></html>